<?php
/*
 * 测试迭代器模式
 */

namespace App\Controller;

use App\DesignPattern\Iterator\UserIterator;

class ControllerIterator {

	public function actionIndex()
    {
        $users = new UserIterator();
        foreach ($users as $user)
        {
            \var_dump($user);
        }
	}
}
